package com.base.mapper.voipmapper;

import com.base.po.br.BrowseRecords;
import com.base.po.br.BrowseRecordsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BrowseRecordsMapper {
    int countByExample(BrowseRecordsExample example);

    int deleteByExample(BrowseRecordsExample example);

    int deleteByPrimaryKey(String brId);

    int insert(BrowseRecords record);

    int insertSelective(BrowseRecords record);

    List<BrowseRecords> selectByExample(BrowseRecordsExample example);

    BrowseRecords selectByPrimaryKey(String brId);

    BrowseRecords selectIsExist(@Param("uid") String uid, @Param("comId") String comId, @Param("apiPro") Integer apiPro,
                                @Param("parentId") String parentId);

    int updateByExampleSelective(@Param("record") BrowseRecords record, @Param("example") BrowseRecordsExample example);

    int updateByExample(@Param("record") BrowseRecords record, @Param("example") BrowseRecordsExample example);

    int updateByPrimaryKeySelective(BrowseRecords record);

    int updateByPrimaryKey(BrowseRecords record);

    List<BrowseRecords> selectByUid(@Param("uId") String uId, @Param("start") int start, @Param("num") int num);

    boolean updateBrowseRecord(BrowseRecords browseRecords);

    BrowseRecords findsignleUserBr(@Param("uId") String uId, @Param("comId") String comId);

    List<BrowseRecords> selectUserBrowseRecord(@Param("uId") String uId,@Param("parentId") String parentId);

    boolean updateUserBrowseRecordByComIdAndUid(BrowseRecords browseRecords);
}